package com.xiaohong.mq.feign;

import com.xiaohong.mq.pojo.ReceiveMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author : xiaohong
 * @date : 2021/4/22 11:19
 */

@FeignClient(name="xiaohong-chat-mq",contextId = "pull")
public interface PullMessageFeign {

    /**
     * nack获取mq消息
     * @return
     */
    @GetMapping("/pull/nack/{cid}")
    List<ReceiveMsg> pullNack(@PathVariable String cid);


    /**
     * ack获取消息
     * @return
     */
    @GetMapping("/pull/ack/{cid}")
    List<ReceiveMsg> pullAck(@PathVariable String cid);

}
